var mongoose=require("mongoose"),
    config=require('./config');
module.exports=function(){
	var db=mongoose.connect(config.db);
	//调用“模式设定模块”
	require("../app/models/users.server.model");
	return db;
}
